package com.log.james.service;

import com.log.james.entity.WebLog;
import com.log.james.mapper.WebLogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class WebLogService implements WebLogDao,Serializable {

    @Autowired
    private WebLogDao webLogDao;
    @Override
    public List<WebLog> findWebLogByTime(Date st, Date et) {
        List<WebLog> webLogs = webLogDao.findWebLogByTime(st,et);
        return webLogs;
    }

    @Override
    public List<Map<String, Object>> findReactNumByTime(Date st, Date et) {
        List<Map<String,Object>> maps = webLogDao.findReactNumByTime(st, et);
        return maps;
    }

    @Override
    public List<Map<String, Object>> findCityNumByTime(Date st, Date et) {
        List<Map<String,Object>> maps = webLogDao.findCityNumByTime(st, et);
        return maps;
    }
}
